<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title id="web_title"></title>
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" type="text/css" href="static/css/css.css" />
<script type="text/javascript" src="static/js/jquery.js"></script>
<script type="text/javascript" src="<%=path %>/static/js/main.js"></script>
<script type="text/javascript" src="static/layer/layer.js"></script>
<script type="text/javascript" src="static/js/tool.js"></script>
<script type="text/javascript" src="static/js/json2.js"></script>
<script type="text/javascript" src="static/js/underscore.js"></script>
<jsp:include page="/WEB-INF/pages/base/bussiness/include.jsp" />
<style type="text/css">
	a.active{
		color:red;
	}
	a.visited{
		color:yellow;
	}
</style>
</head>

<body style="overflow:hidden;">
<%-- <div id="htmlstr" style="display: none">
<c:out value="${areaMap}"/>
</div> --%>
<div id="wrap">
  <div id="openmenu" title="展开导航栏"></div>
<%@include file="/WEB-INF/pages/abc/home/top.jspf"%>
  <div id="mainer">
    <div class="main">
      <div class="mainl">
        <div class="mainlm">
          <ul>
          </ul>
        </div>
        <ul class="adver_menu">
                     <li>
                        <a target="mainFrame" class="menu1" href="#" url="/qh/public/common/r.htmls?page=adver/index&naviId=56">首页</a>
                     </li>
                     <li>
                        <a target="mainFrame" class="menu2" href="#" url="/qh/public/common/r.htmls?page=task/task_list&naviId=44">投放管理</a>
                     </li>
                     <li>
                        <a target="mainFrame" class="menu3" href="#" url="/qh/public/common/r.htmls?page=count/data_report&naviId=50">数据报表</a>
                     </li>
                     <li>
                        <a target="mainFrame" class="menu4" href="#" url="/qh/public/common/r.htmls?page=account/adver_account_list&naviId=48">财务记录</a>
                     </li>
                     <li>
                        <a target="mainFrame" class="menu4" href="#" url="/qh/public/common/r.htmls?page=charg/task_list&naviId=49">扣费记录</a>
                     </li>
                     <li>
                        <a target="mainFrame" class="menu5" href="javascript:void(0)" url="/qh/public/common/r.htmls?page=abc/user/advertiser_edit&naviId=45" >账户管理</a>
                        <ul style="display:none">
                           <li>
                              <a target="mainFrame" href="#" url="/qh/public/common/r.htmls?page=abc/user/advertiser_edit&naviId=45">
                                 账号中心
                              </a>
                           </li>
                           <li>
                              <a target="mainFrame" href="#" url="/qh/public/common/r.htmls?page=abc/log/task_operlog_list&naviId=45">
                                 操作日志
                              </a>
                           </li>
                           <li>
                              <a target="mainFrame" href="#" url="/qh/public/common/r.htmls?page=abc/home/modpassword&naviId=49">
                                  修改密码
                              </a>
                           </li>
                           <li>
                              <a target="mainFrame" href="#" url="/qh/public/common/r.htmls?page=abc/user/advertiser_edit&naviId=45">
                                  通知
                              </a>
                           </li>
                        </ul>
                     </li>

                  </ul>
      </div>
      <div class="mainr">
         <img src="static/images/left_radius.png" style="position:absolute;left:0;top:0;" />
		 <iframe name='mainFrame' id="mainFrame" src="static/main.jsp" frameborder="0" style="width:100%;overflow:auto;" ></iframe>
      </div>
      <div class="clear"></div>
    </div>
  </div>

  <!--<div id="footer">
    <div class="fcopy">版权所有©</div>
   </div>-->
  
</div>

<script type="text/javascript" src="static/js/index.js"></script>
<script type='text/javascript' src='<%=path %>/static/js/date.js'></script>
<script>
   $(function(){
      $(".adver_menu a").click(function(){
         $(".adver_menu a").removeClass("current");
         $(this).addClass("current");
      });
      if('${sessionScope.userInfo.type}'=="B"){
         $("#web_title").text("钱狐广告主后台管理系统");
         $(".mainlm ul").hide();
         $("#mainFrame").attr("src","/qh/public/common/r2.htmls?page=adver/index")
      }
      if('${sessionScope.userInfo.type}'=="A"){
         $(".adver_menu").hide();
         $("#web_title").text("钱狐广告后台管理系统");
         //$("#mainFrame").attr("src","/qh/public/common/r2.htmls?page=user/user_list")
      }
   });
   function addCurrent(obj){
      $(".mainlm a").removeClass("current");
      $(obj).addClass("current");
   }
   function showmenu(obj){
      $(obj).children().eq(1).show();
   }
   function hidemenu(obj){
      $(obj).children().eq(1).hide();
   }

   //高度
   var availHeight = window.screen.availHeight;
   var availWidth = window.screen.availWidth;
   var leftWidth = 112;

   /*if(availWidth>1130){
   	leftWidth = 200;
   }*/
   var rightWidth = availWidth-leftWidth;
   window.onload=function(){
       showLeft();
   	$("div.nav a").click(function(e){
   		e.preventDefault();
   		var id = $(this).attr("id");
   		showLeft(id);
   	})
   	$('#downbtn .b1').click(modPassword);
   	//$("div.trboxm .b2").bind("click",logout);
   	$("div.trboxm .b3").bind("click",function(e){
   		toDesktop("http://"+window.location.host+g_path,"红太阳票务");
   	});
   	var height = $(window).height()-95;
   	//$('#mainFrame').height(availHeight-$("#header").height()-10);
   	//$('div.mainl').height(availHeight-$("#header").height()-10);
   	$('#mainFrame').height(height);
   	$('div.mainl').height($(window).height()-110);
   	$('div.mainr').width(rightWidth);
   	$('div.mainl').width(leftWidth);
   	$('div.topbox').width(availWidth);
   	//$('div#mainer').width(availWidth);
   }

</script>
</body>
</html>